/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package cn.knet.sp.ncrm.modules.sys.customerstatusdetail.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import cn.knet.sp.ncrm.common.persistence.Page;
import cn.knet.sp.ncrm.common.service.CrudService;
import cn.knet.sp.ncrm.modules.sys.customerstatusdetail.dao.CustomerStatusDetailDao;
import cn.knet.sp.ncrm.modules.sys.customerstatusdetail.entity.CustomerStatusDetail;

/**
 * 客户区域Service
 * @author zhangbin
 * @version 2015-08-28
 */
@Service
@Transactional(readOnly = true)
public class CustomerStatusDetailService extends CrudService<CustomerStatusDetailDao, CustomerStatusDetail> {

	public CustomerStatusDetail get(String id) {
		return super.get(id);
	}
	
	public List<CustomerStatusDetail> findList(CustomerStatusDetail customerStatusDetail) {
		return super.findList(customerStatusDetail);
	}
	
	public Page<CustomerStatusDetail> findPage(Page<CustomerStatusDetail> page, CustomerStatusDetail customerStatusDetail) {
		return super.findPage(page, customerStatusDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(CustomerStatusDetail customerStatusDetail) {
		super.save(customerStatusDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(CustomerStatusDetail customerStatusDetail) {
		super.delete(customerStatusDetail);
	}

	public int findDistinctCustomerStatus(CustomerStatusDetail customerStatusDetail) {
		return dao.findDistinctCustomerStatus(customerStatusDetail);
	}
}